﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;

using Newtonsoft.Json;

namespace GetWebInfo
{

    /*
     * 2012-8-1，本报表目前完全参考“民生银行2011年财务报表”完成，不一定适用于保险与券商
     * 英文部分，参考2011年民生银行在香港的财务报表
     */ 
    class FinanceStatements : Statement
    {
        public FinanceStatements()
        {
            this.StatementClass = StatementClassification.Finance;
        }        

        #region  other 非报表里（报表附注里面的），且比较重要的数据

        //现金流量表补充材料
        //***********************************************************************************

        /// <summary>
        /// 资产减值准备
        /// </summary>
        [StatementsAttribute("资产减值准备", StatementType.Other)]
        public decimal Impairment_Of_Assets;

        /// <summary>
        /// 计提预计负债
        /// </summary>
        [StatementsAttribute("计提预计负债", StatementType.Other)]
        public decimal Provision_for_expected_liabilities;

        /// <summary>
        /// 固定资产折旧
        /// </summary>
        [StatementsAttribute("固定资产折旧", StatementType.Other)]
        public decimal Depreciation;

        /// <summary>
        /// 无形资产摊销
        /// </summary>
        [StatementsAttribute("无形资产摊销", StatementType.Other)]
        public decimal Amortization;

        /// <summary>
        /// 长期待摊费用摊销
        /// </summary>
        [StatementsAttribute("长期待摊费用摊销", StatementType.Other)]
        public decimal Amortization_Of_Long_Term_Prepaid_Expenses;

        /// <summary>
        /// 处置固定资产、无形资产和其他长期资产的损失
        /// </summary>
        [StatementsAttribute("处置固定资产、无形资产和其他长期资产的损失", StatementType.Other)]
        public decimal Disposal_Of_Fixed_Assets_Intangible_Assets_And_Other_Long_Term_Assets;

        /// <summary>
        /// 公允价值变动损失
        /// </summary>
        [StatementsAttribute("公允价值变动损失", StatementType.Other)]
        public decimal Changes_In_Fair_Value_Losses;

        /// <summary>
        /// 非经营活动产生的利息净收入
        /// </summary>
        [StatementsAttribute("非经营活动产生的利息净收入", StatementType.Other)]
        public decimal Net_interest_income_generated_by_the_non_operating_activities;

        /// <summary>
        /// 投资收益
        /// </summary>
        [StatementsAttribute("投资收益", StatementType.Other)]
        public decimal Investment_Losses;

        /// <summary>
        /// 递延所得税负债增加
        /// </summary>
        [StatementsAttribute("递延所得税负债增加", StatementType.Other)]
        public decimal Increase_In_Deferred_Income_Tax_Liabilities;

        /// <summary>
        /// 经营性应收项目的增加
        /// </summary>
        [StatementsAttribute("经营性应收项目的增加", StatementType.Other)]
        public decimal Reduction_Of_Operating_Receivables;

        /// <summary>
        /// 经营性应付项目的增加
        /// </summary>
        [StatementsAttribute("经营性应付项目的增加", StatementType.Other)]
        public decimal Increase_In_Operating_Payables;


        //***********************************************************************************

        /// <summary>
        /// 非经常性损益
        /// </summary>
        [StatementsAttribute("非经常性损益", StatementType.Other)]
        public decimal Non_recurring_Gains_and_Losses;

       
        /// <summary>
        /// 员工人数
        /// </summary>
        [StatementsAttribute("员工人数", StatementType.Other)]
        public decimal The_Number_of_Employees;

        /// <summary>
        /// 员工专业结构
        /// </summary>
        [StatementsAttribute("员工专业结构", StatementType.Other)]
        public string Professional_staff_structure;

        /// <summary>
        /// 退休人员数量
        /// </summary>
        [StatementsAttribute("退休人员数量", StatementType.Other)]
        public decimal The_Number_of_Retired_Employees;

        /// <summary>
        /// 管理者前三甲年薪
        /// </summary>
        [StatementsAttribute("管理者前三甲年薪", StatementType.Other)]
        public decimal Managers_Before_The_Three_Annual_Salary;

        /// <summary>
        /// 管理者前三甲持股
        /// </summary>
        [StatementsAttribute("管理者前三甲持股", StatementType.Other)]
        public decimal The_Top_Three_Holdings_Before_The_Manager;

        /// <summary>
        /// 股息
        /// </summary>
        [StatementsAttribute("股息", StatementType.Other)]
        public decimal Dividends;

        #endregion

        #region  资产负债表 consolidated balance sheets

        #region 资产 Assets

        /// <summary>
        /// 存放中央银行款项
        /// 民生2011报表：现金及存放中央银行款项
        /// </summary>
        [StatementsAttribute("存放中央银行款项", StatementType.Balance)]
        public decimal Cash_and_Balances_with_Central_Bank;

        /// <summary>
        /// 现金及存放同业款项
        /// 民生2011报表：存放同业及其他金融机构款项
        /// </summary>
        [StatementsAttribute("现金及存放同业款项", StatementType.Balance)]
        public decimal Balances_with_banks_and_other_financial_institutions;

        /// <summary>
        /// 贵金属
        /// </summary>
        [StatementsAttribute("贵金属", StatementType.Balance)]
        public decimal Precious_Metals;

        /// <summary>
        /// 拆出资金
        /// </summary>
        [StatementsAttribute("拆出资金", StatementType.Balance)]
        public decimal Placements_with_banks_and_other_financial_institutions;

        /// <summary>
        /// 交易性金融资产
        /// </summary>
        [StatementsAttribute("交易性金融资产", StatementType.Balance)]
        public decimal Trading_Financial_Assets;

        /// <summary>
        /// 衍生金融资产
        /// </summary>
        [StatementsAttribute("衍生金融资产", StatementType.Balance)]
        public decimal Positive_fair_value_of_derivatives;

        /// <summary>
        /// 买入返售金融资产
        /// </summary>
        [StatementsAttribute("买入返售金融资产", StatementType.Balance)]
        public decimal Financial_assets_held_under_resale_agreements;

        /// <summary>
        /// 应收利息
        /// </summary>
        [StatementsAttribute("应收利息", StatementType.Balance)]
        public decimal Interest_Receivable;

        /// <summary>
        /// 发放贷款及垫款
        /// 民生2011年报：发放贷款和垫款
        /// </summary>
        [StatementsAttribute("发放贷款及垫款", StatementType.Balance)]
        public decimal Loans_and_Advances_to_Customers;

        /// <summary>
        /// 可供出售金融资产
        /// </summary>
        [StatementsAttribute("可供出售金融资产", StatementType.Balance)]
        public decimal Available_for_sale_Securities;

        /// <summary>
        /// 持有至到期投资
        /// </summary>
        [StatementsAttribute("持有至到期投资", StatementType.Balance)]
        public decimal Held_to_Maturity_Securities;

        /// <summary>
        /// 应收款项
        /// 和讯将：应收款项类投资 与 长期应收款 合并为此项
        /// 因此将长期应收款合并于此
        /// 被和讯与“长期应收款”合并为应收款项
        /// </summary>
        [StatementsAttribute("应收款项", StatementType.Balance)]
        public decimal Loans_and_Receivables;

        /// <summary>
        /// 长期应收款
        /// 被和讯与“应收款项类投资”合并为应收款项
        /// </summary>
        [StatementsAttribute("长期应收款", StatementType.Balance)]
        public decimal Finance_Lease_Receivables;

        /// <summary>
        /// 长期股权投资
        /// </summary>
        [StatementsAttribute("长期股权投资", StatementType.Balance)]
        public decimal Long_Term_Equity_Investments;

        /// <summary>
        /// 固定资产
        /// </summary>
        [StatementsAttribute("固定资产", StatementType.Balance)]
        public decimal Fixed_Assets;

        /// <summary>
        /// 无形资产
        /// </summary>
        [StatementsAttribute("无形资产", StatementType.Balance)]
        public decimal Intangible_Assets;

        /// <summary>
        /// 递延所得税资产
        /// </summary>
        [StatementsAttribute("递延所得税资产", StatementType.Balance)]
        public decimal Deferred_Income_Tax_Assets;

        /// <summary>
        /// 其他资产
        /// </summary>
        [StatementsAttribute("其他资产", StatementType.Balance)]
        public decimal Other_Assets;

        /// <summary>
        /// 资产总计
        /// </summary>
        [StatementsAttribute("资产总计", StatementType.Balance)]
        public decimal Total_Assets;

        #endregion

        #region 负债及所有者权益 Liabilities and owners' equity


        #region 负债 liabilities
        /// <summary>
        /// 向中央银行借款
        /// </summary>
        [StatementsAttribute("向中央银行借款", StatementType.Balance)]
        public decimal Borrowings_from_Central_bank;

        /// <summary>
        /// 同业及其他金融机构存放款项
        /// </summary>
        [StatementsAttribute("同业及其他金融机构存放款项", StatementType.Balance)]
        public decimal Deposits_from_Banks_and_Other_Financial_Institutions;

        /// <summary>
        /// 拆入资金
        /// </summary>
        [StatementsAttribute("拆入资金", StatementType.Balance)]
        public decimal Placements_from_banks_and_other_financial_institutions;

        /// <summary>
        /// 向其他金融机构借款
        ///  被和讯合并到“其他负债”中
        /// </summary>
        [StatementsAttribute("向其他金融机构借款", StatementType.Balance)]
        public decimal Borrowings_from_Banks_and_Other_Financial_Institutions;

        /// <summary>
        /// 衍生金融负债
        /// </summary>
        [StatementsAttribute("衍生金融负债", StatementType.Balance)]
        public decimal Negative_fair_value_of_Derivatives;

        /// <summary>
        /// 卖出回购金融资产款
        /// </summary>
        [StatementsAttribute("卖出回购金融资产款", StatementType.Balance)]
        public decimal Financial_Assets_sold_under_repurchase_agreements;

        /// <summary>
        /// 吸收存款
        /// </summary>
        [StatementsAttribute("吸收存款", StatementType.Balance)]
        public decimal Deposits_from_Customers;

        /// <summary>
        /// 应付职工薪酬
        /// </summary>
        [StatementsAttribute("应付职工薪酬", StatementType.Balance)]
        public decimal Employee_Benefits_Payable;

        /// <summary>
        /// 应交税费
        /// </summary>
        [StatementsAttribute("应交税费", StatementType.Balance)]
        public decimal Taxes_Payable;

        /// <summary>
        /// 应付利息
        /// </summary>
        [StatementsAttribute("应付利息", StatementType.Balance)]
        public decimal Interest_Payable;

        /// <summary>
        /// 预计负债
        /// </summary>
        [StatementsAttribute("预计负债", StatementType.Balance)]
        public decimal Provisions;

        /// <summary>
        /// 应付债券
        /// </summary>
        [StatementsAttribute("应付债券", StatementType.Balance)]
        public decimal Debt_Securities_Issued;

        /// <summary>
        /// 其他负债
        /// </summary>
        [StatementsAttribute("其他负债", StatementType.Balance)]
        public decimal Other_Liabilities;

        /// <summary>
        /// 负债合计
        /// </summary>
        [StatementsAttribute("负债合计", StatementType.Balance)]
        public decimal Total_Liabilities;

        #endregion
        
        #region 所有者权益 Owners' equity

        /// <summary>
        /// 实收资本（或股本）
        /// 民生2011报表：股本
        /// </summary>
        [StatementsAttribute("实收资本（或股本）", StatementType.Balance)]
        public decimal Share_Capital;

        /// <summary>
        /// 资本公积
        /// </summary>
        [StatementsAttribute("资本公积", StatementType.Balance)]
        public decimal Capital_Reserve;

        /// <summary>
        /// 盈余公积
        /// </summary>
        [StatementsAttribute("盈余公积", StatementType.Balance)]
        public decimal Surplus_Reserve;

        /// <summary>
        /// 一般风险准备
        /// </summary>
        [StatementsAttribute("一般风险准备", StatementType.Balance)]
        public decimal General_Reserve;

        /// <summary>
        /// 未分配利润
        /// </summary>
        [StatementsAttribute("未分配利润", StatementType.Balance)]
        public decimal Retained_Earnings;

        /// <summary>
        /// 归属母公司所有者权益（或股东权益）
        /// 民生2011报表：归属于母公司股东权益合计
        /// </summary>
        [StatementsAttribute("归属母公司所有者权益（或股东权益）", StatementType.Balance)]
        public decimal Total_Equity_Attributable_to_Equity_Shareholders;

        /// <summary>
        /// 少数股东权益
        /// </summary>
        [StatementsAttribute("少数股东权益", StatementType.Balance)]
        public decimal Non_Controlling_Interests;

        /// <summary>
        /// 所有者权益（或股东权益）合计
        /// 民生2011报表：股东权益合计
        /// </summary>
        [StatementsAttribute("所有者权益（或股东权益）合计", StatementType.Balance)]
        public decimal Total_Equity;

        #endregion

        /// <summary>
        /// 负债和所有者权益（或股东权益）总计
        /// 民生2011报表：负债和股东权益总计
        /// </summary>
        [StatementsAttribute("负债和所有者权益（或股东权益）总计", StatementType.Balance)]
        public decimal Total_Liabilities_And_Equity;

        #endregion

        #endregion

        #region 损益表 consolidated statements of operations

        /// <summary>
        /// 营业收入
        /// </summary>
        [StatementsAttribute("营业收入", StatementType.Operation)]
        public decimal Revenue;

        /// <summary>
        /// 利息收入
        /// </summary>
        [StatementsAttribute("利息收入", StatementType.Operation)]
        public decimal Interest_Income;

        /// <summary>
        /// 利息支出
        /// </summary>
        [StatementsAttribute("利息支出", StatementType.Operation)]
        public decimal Interest_Expense;

        /// <summary>
        /// 利息净收入
        /// </summary>
        [StatementsAttribute("利息净收入", StatementType.Operation)]
        public decimal Net_Interest_Income;

        /// <summary>
        /// 手续费及佣金收入
        /// </summary>
        [StatementsAttribute("手续费及佣金收入", StatementType.Operation)]
        public decimal Fee_and_Commission_Income;

        /// <summary>
        /// 手续费及佣金支出
        /// </summary>
        [StatementsAttribute("手续费及佣金支出", StatementType.Operation)]
        public decimal Fee_and_Commission_Expense;

        /// <summary>
        /// 手续费及佣金净收入
        /// </summary>
        [StatementsAttribute("手续费及佣金净收入", StatementType.Operation)]
        public decimal Net_Fee_and_Commission_Income;        

        /// <summary>
        /// 投资收益
        /// 民生2011报表：投资收益/（损失）
        /// </summary>
        [StatementsAttribute("投资收益", StatementType.Operation)]
        public decimal Investment_Income;
        
        /// <summary>
        /// 公允价值变动收益
        /// 民生2011：公允价值变动损失
        /// </summary>
        [StatementsAttribute("公允价值变动收益", StatementType.Operation)]
        public decimal Impairment_losses_on_assets;

        /// <summary>
        /// 汇兑收益 
        /// </summary>
        [StatementsAttribute("汇兑收益", StatementType.Operation)]
        public decimal Exchange_Gains;

        /// <summary>
        /// 其他业务收入
        /// </summary>
        [StatementsAttribute("其他业务收入", StatementType.Operation)]
        public decimal Other_business_costs;

        /// <summary>
        /// 营业支出
        /// </summary>
        [StatementsAttribute("营业支出", StatementType.Operation)]
        public decimal Cost_of_Sales;

        /// <summary>
        /// 营业税金及附加
        /// </summary>
        [StatementsAttribute("营业税金及附加", StatementType.Operation)]
        public decimal Taxes_and_Surcharges;        
        
        /// <summary>
        /// 业务及管理费
        /// </summary>
        [StatementsAttribute("业务及管理费", StatementType.Operation)]
        public decimal General_and_Administrative_Expenses;

        /// <summary>
        /// 资产减值损失
        /// </summary>
        [StatementsAttribute("资产减值损失", StatementType.Operation)]
        public decimal Asset_Impairment_Losses;

        /// <summary>
        /// 其他业务成本
        /// </summary>
        [StatementsAttribute("其他业务成本", StatementType.Operation)]
        public decimal Cost_of_Other_Business;

        /// <summary>
        /// 营业利润
        /// </summary>
        [StatementsAttribute("营业利润", StatementType.Operation)]
        public decimal Operating_Profit;

        /// <summary>
        /// 加：营业外收入
        /// </summary>
        [StatementsAttribute("营业外收入", StatementType.Operation)]
        public decimal Non_Operating_Income;

        /// <summary>
        /// 减：营业外支出
        /// </summary>
        [StatementsAttribute("营业外支出", StatementType.Operation)]
        public decimal Non_Operating_Expenses;

        /// <summary>
        /// 利润总额
        /// </summary>
        [StatementsAttribute("利润总额", StatementType.Operation)]
        public decimal Total_Profit;

        /// <summary>
        /// 减：所得税费用
        /// </summary>
        [StatementsAttribute("所得税", StatementType.Operation)]
        public decimal Income_Tax_Expenses;

        /// <summary>
        /// 净利润
        /// </summary>
        [StatementsAttribute("净利润", StatementType.Operation)]
        public decimal Net_Profit;

        /// <summary>
        /// 归属于母公司所有者的净利润
        /// 民生2011年报：归属于母公司股东的净利润
        /// </summary>
        [StatementsAttribute("归属于母公司所有者的净利润", StatementType.Operation)]
        public decimal Equity_Shareholders;

        /// <summary>
        /// 少数股东损益
        /// 民生2011年报：归属于少数股东损益
        /// </summary>
        [StatementsAttribute("少数股东损益", StatementType.Operation)]
        public decimal Non_Controlling_Interests_from_Operations;

        /// <summary>
        /// 基本每股收益
        /// 民生2011年报：基本及稀释每股收益
        /// </summary>
        [StatementsAttribute("基本每股收益", StatementType.Operation)]
        public decimal Basic_and_Diluted_earnings_per_share;
        
        /// <summary>
        /// 其他综合收益
        /// </summary>
        [StatementsAttribute("其他综合收益", StatementType.Operation)]
        public decimal Other_Comprehensive_Income;
        
        /// <summary>
        /// 综合收益总额
        /// </summary>
        [StatementsAttribute("综合收益总额", StatementType.Operation)]
        public decimal Total_Comprehensive_Income;
        
        /// <summary>
        /// 归属于母公司股东的综合收益总额
        /// </summary>
        [StatementsAttribute("归属于母公司股东的综合收益总额", StatementType.Operation)]
        public decimal Total_Equity_Shareholders;
        
        /// <summary>
        /// 归属于少数股东的综合收益总额
        /// </summary>
        [StatementsAttribute("归属于少数股东的综合收益总额", StatementType.Operation)]
        public decimal Total_Non_Controlling_Interests;
        
        #endregion

        #region 现金流量表 consolidated statements of cash flows

        #region 经营活动产生的现金流量 Cash flows from operating activities

        /// <summary>
        /// 客户存款和同业存放款项净增加额
        /// 民生2011报表：吸收存款和同业及其他金融机构存放款项净增加额
        /// </summary>
        [StatementsAttribute("客户存款和同业存放款项净增加额", StatementType.CashFolw)]
        public decimal Net_increase_in_deposits_from_customers_and_other_financial_institutions;

        /// <summary>
        /// 收取利息、手续费及佣金的现金
        /// </summary>
        [StatementsAttribute("收取利息、手续费及佣金的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Fee_and_Commission_and_Interest;

        /// <summary>
        /// 拆入资金净增加额
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("拆入资金净增加额", StatementType.CashFolw)]
        public decimal Net_increase_in_placements_from_banks_and_other_financial_institutions;

        /// <summary>
        /// 卖出回购金融资产款净增加额
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("卖出回购金融资产款净增加额", StatementType.CashFolw)]
        public decimal Net_increase_infinancial_assets_sold_under_repurchase_agreements;
                
        /// <summary>
        /// 收到其他与经营活动有关的现金
        /// </summary>
        [StatementsAttribute("收到其他与经营活动有关的现金", StatementType.CashFolw)]
        public decimal Cash_Received_Relating_to_Other_Operating_Activities;

        /// <summary>
        /// 经营活动现金流入小计
        /// </summary>
        [StatementsAttribute("经营活动现金流入小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Inflows_from_Operating_Activities;

        /// <summary>
        /// 客户贷款及垫款净增加额
        /// 民生2011报表：发放贷款和垫款净增加额
        /// </summary>
        [StatementsAttribute("客户贷款及垫款净增加额", StatementType.CashFolw)]
        public decimal Net_Increase_in_Loans_and_advances_to_customers;

        /// <summary>
        /// 存放中央银行和同业款项净增加额
        /// 民生2011报表：存放中央银行和同业及其他金融机构款项净增加额
        /// </summary>
        [StatementsAttribute("存放中央银行和同业款项净增加额", StatementType.CashFolw)]
        public decimal Net_increase_in_balances_with_central_bank_and_other_financial_institutions;

        /// <summary>
        /// 拆出资金净增加额
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("拆出资金净增加额", StatementType.CashFolw)]
        public decimal Net_increase_in_placements_with_banks_and_other_financial_institutions;

        /// <summary>
        /// 买入返售金融资产净增加额
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("买入返售金融资产净增加额", StatementType.CashFolw)]
        public decimal Net_increase_in_financial_assets_held_under_resale_agreements;

        /// <summary>
        /// 支付的手续费及佣金的现金
        /// 民生2011报表：支付利息、手续费及佣金的现金
        /// </summary>
        [StatementsAttribute("支付的手续费及佣金的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Sales_of_Goods_or_Rendering_of_Services;
        
        /// <summary>
        /// 支付给职工以及为职工支付的现金
        /// </summary>
        [StatementsAttribute("支付给职工以及为职工支付的现金", StatementType.CashFolw)]
        public decimal Cash_Paid_to_and_on_Behalf_of_Employees;
                
        /// <summary>
        /// 支付的各项税费
        /// </summary>
        [StatementsAttribute("支付的各项税费", StatementType.CashFolw)]
        public decimal Payments_of_Taxes_and_Surcharges;
        
        /// <summary>
        /// 支付其他与经营活动有关的现金
        /// </summary>
        [StatementsAttribute("支付其他与经营活动有关的现金", StatementType.CashFolw)]
        public decimal Cash_Paid_Relating_to_Other_Operating_Activities;
        
        /// <summary>
        /// 经营活动现金流出小计
        /// </summary>
        [StatementsAttribute("经营活动现金流出小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Outflows_from_Operating_Activities;
         
        /// <summary>
        /// 经营活动产生的现金流量净额
        /// </summary>
        [StatementsAttribute("经营活动产生的现金流量净额", StatementType.CashFolw)]
        public decimal Net_Cash_Flows_from_Operating_Activities;

        #endregion

        #region 投资活动产生的现金流量 Cash flows from investing activities
 
        /// <summary>
        /// 收回投资收到的现金
        /// </summary>
        [StatementsAttribute("收回投资收到的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Disposal_of_Investments;

        /// <summary>
        /// 取得投资收益收到的现金
        /// </summary>
        [StatementsAttribute("取得投资收益收到的现金", StatementType.CashFolw)]
        public decimal Cash_Received_form_Returns_on_Investments;

        /// <summary>
        /// 处置固定资产、无形资产和其他长期资产收回的现金净额
        /// 民生2011报表：处置固定资产、无形资产和其他长期资产收到的现金
        /// </summary>
        [StatementsAttribute("处置固定资产、无形资产和其他长期资产收回的现金净额", StatementType.CashFolw)]
        public decimal Net_Cash_Received_from_Disposal_of_Fixed_Assets_Intangible_Assets_And_Other_Long_Term_Assets;

        /// <summary>
        /// 投资活动现金流入小计
        /// </summary>
        [StatementsAttribute("投资活动现金流入小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Inflows_from_Investing_Activities;

        /// <summary>
        /// 投资支付的现金
        /// </summary>
        [StatementsAttribute("投资支付的现金", StatementType.CashFolw)]
        public decimal Cash_Paid_to_Acquire_Investments;
        
        /// <summary>
        /// 取得子公司及其他营业单位支付的现金净额
        /// 民生2011报表：取得子公司及其他营业单位支付的现金
        /// </summary>
        [StatementsAttribute("取得子公司及其他营业单位支付的现金净额", StatementType.CashFolw)]
        public decimal Net_Cash_Paid_to_Acquire_Subsidiaries_and_Other_Business_Units;

        /// <summary>
        /// 购建固定资产、无形资产和其他长期资产支付的现金
        /// </summary>
        [StatementsAttribute("购建固定资产、无形资产和其他长期资产支付的现金", StatementType.CashFolw)]
        public decimal Cash_Paid_to_Acquire_Fixed_Assets_Intangible_Aassets_and_Other_Long_Term_Assets; 

        /// <summary>
        /// 投资活动现金流出小计
        /// </summary>
        [StatementsAttribute("投资活动现金流出小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Outflows_from_Investing_Activities;

        /// <summary>
        /// 投资活动产生的现金流量净额
        /// </summary>
        [StatementsAttribute("投资活动产生的现金流量净额", StatementType.CashFolw)]
        public decimal Net_Cash_Flows_from_Investing_Activities;

        #endregion

        #region 筹资活动产生的现金流量 Cash flows from financing activities

        /// <summary>
        /// 吸收投资收到的现金
        /// </summary>
        [StatementsAttribute("吸收投资收到的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Capital_Contributions;

        /// <summary>
        /// 其中：子公司吸收少数股东投资收到的现金
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("子公司吸收少数股东投资收到的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Capital_Contributions_by_Minority_Shareholders_of_Subsidiaries;

        /// <summary>
        /// 发行债券收到的现金
        /// 和讯没有
        /// </summary>
        [StatementsAttribute("发行债券收到的现金", StatementType.CashFolw)]
        public decimal Cash_Received_from_Issuance_of_Debentures;

        /// <summary>
        /// 筹资活动现金流入小计
        /// </summary>
        [StatementsAttribute("筹资活动现金流入小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Inflows_from_Financing_Activities;

        /// <summary>
        /// 偿还债务支付的现金
        /// </summary>
        [StatementsAttribute("偿还债务支付的现金", StatementType.CashFolw)]
        public decimal Cash_Repayments_of_Borrowings;

        /// <summary>
        /// 分配股利、利润或偿付利息支付的现金
        /// 民生2011报表：分配股利、利润或偿付应付债券利息支付的现金
        /// </summary>
        [StatementsAttribute("分配股利、利润或偿付利息支付的现金", StatementType.CashFolw)]
        public decimal Cash_Payments_for_Interest_Expenses_and_Distribution_of_Dividends_or_Profits;

        /// <summary>
        /// 筹资活动现金流出小计
        /// </summary>
        [StatementsAttribute("筹资活动现金流出小计", StatementType.CashFolw)]
        public decimal Subtotal_of_Cash_Outflows_from_Financing_Activities;

        /// <summary>
        /// 筹资活动产生的现金流量净额
        /// </summary>
        [StatementsAttribute("筹资活动产生的现金流量净额", StatementType.CashFolw)]
        public decimal Net_Cash_Flows_from_Financing_Activities;

        #endregion

        #region 汇率变动对现金及现金等价物的影响 Effect of foreign exchange rates changes on cash and cash equivalents

        /// <summary>
        /// 汇率变动对现金的影响
        /// 民生2011年报：汇率变动对现金及现金等价物的影响
        /// </summary>
        [StatementsAttribute("汇率变动对现金的影响", StatementType.CashFolw)]
        public decimal Effect_of_foreign_exchange_rate_changes;

        #endregion

        #region 现金及现金等价物净增加额 Net increase in cash and cash equivalents

        /// <summary>
        /// 现金及现金等价物净增加额
        /// </summary>
        [StatementsAttribute("现金及现金等价物净增加额", StatementType.CashFolw)]
        public decimal Cash_and_cash_equivalents;

        /// <summary>
        /// 期初现金及现金等价物余额
        /// 民生2011年报：加：年初现金及现金等价物余额
        /// </summary>
        [StatementsAttribute("期初现金及现金等价物余额", StatementType.CashFolw)]
        public decimal Cash_and_cash_equivalents_at_1_January;

        #endregion

        #region 年末现金及现金等价物余额 Cash and cash equivalent at end of year

        /// <summary>
        /// 期末现金及现金等价物余额
        /// 民生2011年报：年末现金及现金等价物余额
        /// </summary>
        [StatementsAttribute("期末现金及现金等价物余额", StatementType.CashFolw)]
        public decimal Cash_and_cash_equivalent_at_end_of_year;

        #endregion

        #endregion

        
        public static FinanceStatements operator -(FinanceStatements lfs, FinanceStatements rfs)
        {
            //IndustrialStatements _fs = new IndustrialStatements();

            Type myType = typeof(FinanceStatements);
            FieldInfo[] myFields = myType.GetFields(BindingFlags.Public | BindingFlags.Instance);

            for (int i = 0; i < myFields.Length; i++)
            {
                StatementsAttribute obsAttr = (StatementsAttribute)Attribute.GetCustomAttribute(myFields[i], typeof(StatementsAttribute));

                //只需要损益表与现金流量表做减法
                if (obsAttr.Type == StatementType.CashFolw ||
                    obsAttr.Type == StatementType.Operation)
                {
                    decimal _tempd = (decimal)myFields[i].GetValue(lfs) - (decimal)myFields[i].GetValue(rfs);
                    myFields[i].SetValue(lfs, _tempd);
                }
            }

            return lfs;
        }
        
        
        public override string ToString()
        {
            return string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}\t{11}\t{12}\t{13}\t{14}\t{15}\t{16}\t{17}\t{18}\t{19}\t{20}\t{21}\t{22}\t{23}\t{24}\t{25}\t{26}\t{27}\t{28}\t{29}\t{30}\t{31}\t{32}\t{33}\t{34}\t{35}\t{36}\t{37}\t{38}\t{39}\t{40}\t{41}\t{42}\t{43}\t{44}\t{45}\t{46}\t{47}\t{48}\t{49}\t{50}\t{51}\t{52}\t{53}\t{54}\t{55}\t{56}\t{57}\t{58}\t{59}\t{60}\t{61}\t{62}\t{63}\t{64}\t{65}\t{66}\t{67}\t{68}\t{69}\t{70}\t{71}\t{72}\t{73}\t{74}\t{75}\t{76}\t{77}\t{78}\t{79}\t{80}\t{81}\t{82}\t{83}\t{84}\t{85}\t{86}\t{87}\t{88}\t{89}\t{90}\t{91}\t{92}\t{93}\t{94}\t{95}\t{96}\t{97}\t{98}\t{99}\t{100}\t{101}\t{102}\t{103}\t{104}\t{105}\t{106}\t{107}\t{108}\t{109}\t{110}\t{111}\t{112}\t{113}\t{114}\t{115}\t{116}\t{117}\t{118}\t{119}\t{120}\t{121}\t{122}\t{123}\t{124}\t{125}\t{126}\r\n",
                        this.Non_recurring_Gains_and_Losses,
                        this.The_Number_of_Employees,
                        this.Professional_staff_structure,
                        this.The_Number_of_Retired_Employees,
                        this.Managers_Before_The_Three_Annual_Salary,
                        this.The_Top_Three_Holdings_Before_The_Manager,
                        this.Dividends,
                        this.Impairment_Of_Assets,
                        this.Provision_for_expected_liabilities,
                        this.Depreciation,
                        this.Amortization,
                        this.Amortization_Of_Long_Term_Prepaid_Expenses,
                        this.Disposal_Of_Fixed_Assets_Intangible_Assets_And_Other_Long_Term_Assets,
                        this.Changes_In_Fair_Value_Losses,
                        this.Net_interest_income_generated_by_the_non_operating_activities,
                        this.Investment_Losses,
                        this.Increase_In_Deferred_Income_Tax_Liabilities,
                        this.Reduction_Of_Operating_Receivables,
                        this.Increase_In_Operating_Payables,
                        this.Cash_and_Balances_with_Central_Bank,
                        this.Balances_with_banks_and_other_financial_institutions,
                        this.Precious_Metals,
                        this.Placements_with_banks_and_other_financial_institutions,
                        this.Trading_Financial_Assets,
                        this.Positive_fair_value_of_derivatives,
                        this.Financial_assets_held_under_resale_agreements,
                        this.Interest_Receivable,
                        this.Loans_and_Advances_to_Customers,
                        this.Available_for_sale_Securities,
                        this.Held_to_Maturity_Securities,
                        this.Loans_and_Receivables,
                        this.Finance_Lease_Receivables,
                        this.Long_Term_Equity_Investments,
                        this.Fixed_Assets,
                        this.Intangible_Assets,
                        this.Deferred_Income_Tax_Assets,
                        this.Other_Assets,
                        this.Total_Assets,
                        this.Borrowings_from_Central_bank,
                        this.Deposits_from_Banks_and_Other_Financial_Institutions,
                        this.Placements_from_banks_and_other_financial_institutions,
                        this.Borrowings_from_Banks_and_Other_Financial_Institutions,
                        this.Negative_fair_value_of_Derivatives,
                        this.Financial_Assets_sold_under_repurchase_agreements,
                        this.Deposits_from_Customers,
                        this.Employee_Benefits_Payable,
                        this.Taxes_Payable,
                        this.Interest_Payable,
                        this.Provisions,
                        this.Debt_Securities_Issued,
                        this.Other_Liabilities,
                        this.Total_Liabilities,
                        this.Share_Capital,
                        this.Capital_Reserve,
                        this.Surplus_Reserve,
                        this.General_Reserve,
                        this.Retained_Earnings,
                        this.Total_Equity_Attributable_to_Equity_Shareholders,
                        this.Non_Controlling_Interests,
                        this.Total_Equity,
                        this.Total_Liabilities_And_Equity,                        
                        this.Interest_Income,
                        this.Interest_Expense,
                        this.Net_Interest_Income,
                        this.Fee_and_Commission_Income,
                        this.Fee_and_Commission_Expense,
                        this.Net_Fee_and_Commission_Income,
                        this.Investment_Income,
                        this.Impairment_losses_on_assets,
                        this.Exchange_Gains,
                        this.Other_business_costs,
                        this.Revenue,
                        this.Taxes_and_Surcharges,
                        this.General_and_Administrative_Expenses,
                        this.Asset_Impairment_Losses,
                        this.Cost_of_Other_Business,
                        this.Cost_of_Sales,
                        this.Operating_Profit,
                        this.Non_Operating_Income,
                        this.Non_Operating_Expenses,
                        this.Total_Profit,
                        this.Income_Tax_Expenses,
                        this.Net_Profit,
                        this.Equity_Shareholders,
                        this.Non_Controlling_Interests_from_Operations,
                        this.Basic_and_Diluted_earnings_per_share,
                        this.Other_Comprehensive_Income,
                        this.Total_Comprehensive_Income,
                        this.Total_Equity_Shareholders,
                        this.Total_Non_Controlling_Interests,
                        this.Net_increase_in_deposits_from_customers_and_other_financial_institutions,
                        this.Cash_Received_from_Fee_and_Commission_and_Interest,
                        this.Net_increase_in_placements_from_banks_and_other_financial_institutions,
                        this.Net_increase_infinancial_assets_sold_under_repurchase_agreements,
                        this.Cash_Received_Relating_to_Other_Operating_Activities,
                        this.Subtotal_of_Cash_Inflows_from_Operating_Activities,
                        this.Net_Increase_in_Loans_and_advances_to_customers,
                        this.Net_increase_in_balances_with_central_bank_and_other_financial_institutions,
                        this.Net_increase_in_placements_with_banks_and_other_financial_institutions,
                        this.Net_increase_in_financial_assets_held_under_resale_agreements,
                        this.Cash_Received_from_Sales_of_Goods_or_Rendering_of_Services,
                        this.Cash_Paid_to_and_on_Behalf_of_Employees,
                        this.Payments_of_Taxes_and_Surcharges,
                        this.Cash_Paid_Relating_to_Other_Operating_Activities,
                        this.Subtotal_of_Cash_Outflows_from_Operating_Activities,
                        this.Net_Cash_Flows_from_Operating_Activities,
                        this.Cash_Received_from_Disposal_of_Investments,
                        this.Cash_Received_form_Returns_on_Investments,
                        this.Net_Cash_Received_from_Disposal_of_Fixed_Assets_Intangible_Assets_And_Other_Long_Term_Assets,
                        this.Subtotal_of_Cash_Inflows_from_Investing_Activities,
                        this.Cash_Paid_to_Acquire_Investments,
                        this.Net_Cash_Paid_to_Acquire_Subsidiaries_and_Other_Business_Units,
                        this.Cash_Paid_to_Acquire_Fixed_Assets_Intangible_Aassets_and_Other_Long_Term_Assets,
                        this.Subtotal_of_Cash_Outflows_from_Investing_Activities,
                        this.Net_Cash_Flows_from_Investing_Activities,
                        this.Cash_Received_from_Capital_Contributions,
                        this.Cash_Received_from_Capital_Contributions_by_Minority_Shareholders_of_Subsidiaries,
                        this.Cash_Received_from_Issuance_of_Debentures,
                        this.Subtotal_of_Cash_Inflows_from_Financing_Activities,
                        this.Cash_Repayments_of_Borrowings,
                        this.Cash_Payments_for_Interest_Expenses_and_Distribution_of_Dividends_or_Profits,
                        this.Subtotal_of_Cash_Outflows_from_Financing_Activities,
                        this.Net_Cash_Flows_from_Financing_Activities,
                        this.Effect_of_foreign_exchange_rate_changes,
                        this.Cash_and_cash_equivalents,
                        this.Cash_and_cash_equivalents_at_1_January,
                        this.Cash_and_cash_equivalent_at_end_of_year);
        }        
    }    
}
